﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace iStudio.Engine.Utils
{
    [StructLayout(LayoutKind.Explicit)]
    public sealed class UnsafeBuffer
    {
        [FieldOffset(0)]
        byte[] _byteArray;
        public byte[] ByteArray
        {
            get { return _byteArray; }
            set { _byteArray = value; }
        }

        [FieldOffset(0)]
        float[] _floatArray;
        public float[] FloatArray
        {
            get { return _floatArray; }
            set { _floatArray = value; }
        }
    }
}
